"""可变长参数"""


def sum_nums(*args):
    print("args1",type(args))
    rst = 0
    for i in args:
        rst += i
    return rst

def sum_nums2(name,*args):
    print("name",1)
    rst = 0
    for i in args:
        rst += i
    return rst


#rst = sum_nums(1,2,3,4,5)
rst = sum_nums2(1,2,3,4,5)
print(rst)